<?php

require_once 'init.php';
require_once 'cf/page.inc';

$articleId = (int)$par->get('articleId');

$page = new Page(ARTICLES_PAGE_ID);

$article = query2array("
	SELECT title, dt, txt, source
	FROM articles
	WHERE id=$articleId
");
if (empty($articles)) {
//	header('Location: articles.php');
}
$smarty->assign('article',$article);

show('article',$article['title'],array($page->menuName()=>'articles.php'));
?>